package cn.gailvlun.gll.net.emotion;

import android.databinding.ObservableBoolean;
import android.databinding.ObservableInt;

import com.google.gson.annotations.Expose;

import io.realm.RealmObject;
import io.realm.annotations.Ignore;



public class Heart extends RealmObject {
    private int count;
    @Ignore
    @Expose(serialize = false, deserialize = false)
    private ObservableInt countObservable;
    private boolean hearted;
    @Ignore
    @Expose(serialize = false, deserialize = false)
    private ObservableBoolean heartObservable;

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public boolean isHearted() {
        return hearted;
    }

    public void setHearted(boolean hearted) {
        this.hearted = hearted;
    }

    public ObservableInt getCountObservable() {
        if (countObservable == null) {
            countObservable = new ObservableInt(count);
        }
        return countObservable;
    }
    public ObservableBoolean getHeartObservable() {
        if (heartObservable == null) {
            heartObservable = new ObservableBoolean(hearted);
        }
        return heartObservable;
    }
}
